<!--{template admin/tpl/header}-->

<div class="mainarea">
	<div class="maininner">

		<form method="get" action="admincp.php">
		<div class="block style4">
			<table cellspacing="3" cellpadding="3">
				<tr>
					<th>电影名*</th>
					<td><input type="text" name="mname" value="$_GET[mname]" /></td>
					<th>电影ID</th>
					<td>
						<input type="text" name="movieid" value="$_GET[movieid]" />
					</td>
					
				</tr>
				<tr>
					<th>地域分类</th>
					<td>
						<select name="regionid">
						<option value="">不限</option>
						<!--{loop $regionlist $value}-->
						<option value="$value[regionid]"<!--{if $_GET[regionid] == $value[regionid]}--> selected<!--{/if}-->>$value[regionname]</option>
						<!--{/loop}-->
						</select>	
					</td>
					<th>电影分类</th>
					<td>
						<select name="typeid">
						<option value="">不限</option>
						<!--{loop $typelist $value}-->
						<option value="$value[typeid]"<!--{if $_GET[typeid] == $value[typeid]}--> selected<!--{/if}-->>$value[typename]</option>
						<!--{/loop}-->
						</select>	
					</td>
				</tr>
				<tr>
					<th>审核状态</th>
					<td colspan="3">
						<select name="checked">
						<option value="">不限</option>
						<option value="0"<!--{if $_GET[checked] == '0'}--> selected<!--{/if}-->>未审核</option>
						<option value="1"<!--{if $_GET[checked] == '1'}--> selected<!--{/if}-->>通过审核</option>
						<option value="2"<!--{if $_GET[checked] == '2'}--> selected<!--{/if}-->>未通过审核</option>
						</select>	
					</td>
					
				</tr>
				<!--{if $allowmanage}-->
				<tr>
					<th>发布者UID</th>
					<td><input type="text" name="uid" value="$_GET[uid]" /></td>
					<th>发布者</th>
					<td><input type="text" name="username" value="$_GET[username]" /></td>
				</tr>
				<!--{/if}-->
				<tr>
					<th>创建时间</th>
					<td colspan="3">
						<input type="text" name="dateline1" value="$_GET[dateline1]" size="10" /> ~
						<input type="text" name="dateline2" value="$_GET[dateline2]" size="10" />
						(YYYY-MM-DD)
					</td>
				</tr>
				<tr>
					<th>结果排序</th>
					<td colspan="3">
						<input type="hidden" name="ac" value="movie" />
						<select name="orderby">
						<option value="">默认排序</option>
						<option value="dateline"$orderby[dateline]>创建时间</option>
						</select>
						<select name="ordersc">
						<option value="desc"$ordersc[desc]>递减</option>
						<option value="asc"$ordersc[asc]>递增</option>
						</select>
						<select name="perpage">
						<option value="20"$perpages[20]>每页显示20个</option>
						<option value="50"$perpages[50]>每页显示50个</option>
						<option value="100"$perpages[100]>每页显示100个</option>
						<option value="1000"$perpages[1000]>一次处理1000个</option>
						</select>
						<input type="submit" name="searchsubmit" value="搜索" class="submit" />
					</td>
				</tr>
			</table>
			</div>
		</form>

	
		<!--{if $list}-->
		<form method="post" action="admincp.php?ac=movie">
		<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
		<div class="bdrcontent">

<!--{if $perpage>100}-->
			<p>总共有满足条件的数据 <strong>$count</strong> 个</p>
			<!--{loop $list $value}-->
			<input type="hidden" name="ids[]" value="$value[movieid]">
			<!--{/loop}-->
		
<!--{else}-->
			<table cellspacing="0" cellpadding="0" class="formtable">

			<tr>
			<!--{loop $list $key $value}-->
				<td width="105">
					<a href="space.php?uid=$value[uid]&do=movie&id=$value[movieid]" target="_blank"><img src="<!--{if $value[images]}-->$value[images]<!--{else}-->image/nomoviepic.gif<!--{/if}-->" alt="$value[mname]" width="100" height="135"></a>	
					<input type="<!--{if $allowbatch}-->checkbox<!--{else}-->radio<!--{/if}-->" name="ids[]" value="$value[movieid]"> 选择
				</td>
				<td>
				电影: <a href="space.php?uid=$value[uid]&do=movie&id=$value[movieid]">$value[mname]</a>
				<!--{if $allowmanage}-->
				<br />作者: <a href="admincp.php?ac=movie&uid=$value[uid]">$value[username]</a>
				<!--{/if}-->
				<br />时间: <!--{date('Y-m-d',$value[dateline])}-->
				<br /><br />审核: 
				<!--{if $value[checked]==0}-->
				[<a href="admincp.php?ac=movie&op=check&id=$value[movieid]&check=1" style="color:blue;">通过</a>][<a href="admincp.php?ac=movie&op=check&id=$value[movieid]&check=2" style="color:blue;">不通过</a>]
				<!--{elseif $value[checked]==1}-->
				<font color="Green">审核通过</font>
				<!--{elseif $value[checked]==2}-->
				<font color="Red">审核未通过</font>
				<!--{/if}-->
				<br /><br />操作: [<a href="cp.php?ac=movie&op=edit&movieid=$value[movieid]" target="_blank">编辑</a>][
				<a href="admincp.php?ac=comment&id=$value[movieid]&idtype=movieid">评论</a>]
				</td>
			<!--{if $key%2==1}--></tr><tr><!--{/if}-->
			<!--{/loop}-->
			</tr>
			
			</table>
<!--{/if}-->
		</div>
			
		<div class="footactions">
			<!--{if $allowbatch && $perpage<=100}--><input type="checkbox" id="chkall" name="chkall" onclick="checkAll(this.form, 'ids')">全选<!--{/if}-->
			<input type="hidden" name="mpurl" value="$mpurl">
			<input type="submit" name="deletesubmit" value="批量删除" onclick="return confirm('本操作不可恢复，确认删除？');" class="submit">
			<div class="pages">$multi</div>
		</div>
		</form>
		
<!--{else}-->
	<div class="bdrcontent">
		<p>指定条件下还没有数据</p>
	</div>
<!--{/if}-->
	</div>
</div>

<div class="side">
	<!--{template admin/tpl/side}-->
</div>

<!--{template admin/tpl/footer}-->